﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.ascx.cs" Inherits="VoIPWeb.Uc.ChangePassword" %>
<link rel="stylesheet" href="../Css/backend-style.css" type="text/css" media="screen" />
<div id='reset_password' style="width:98%">
 <div class="lblheader" >Change Customer password</div>
    <p>
        Enter your new password and retype to confirm. After that, click Change 
        Password</p>
    <div>
   <div>
    <asp:Label ID="m_lbl_error" Visible="false" CssClass="cssErrorLabel" runat="server"></asp:Label>
     <asp:validationsummary id="vdsCategory" runat="server" CssClass="cssErrorLabel" Font-Bold="true" />
     <asp:Label ID="m_lbl_result"  CssClass="cssErrorLabel" runat="server" Text=""></asp:Label>
   </div>
    </div>
<table style="width: 98%; ">
            <tr>
                <td class="style1" style="height:30px; width:30%">
                    <span class="cssManField">Old password</span></td>
                <td colspan="2">
                    <asp:TextBox ID="m_txt_current_pass" runat="server" Width="65%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="(*)"
                        ControlToValidate="m_txt_current_pass" ErrorMessage="Old password is empty"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1" style="height:30px; width:30%">
                    <span class="cssManField">New password</span></td>
                <td colspan="2">
                    <asp:TextBox ID="m_txt_new_pass" runat="server" Width="65%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_req_validate_new_pass" runat="server" Text="(*)"
                        ControlToValidate="m_txt_new_pass" ErrorMessage="New password is empty"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1" style="height:30px; width:30%">
                     <span class="cssManField">Retype new password</span></td>
                <td colspan="2">
                    <asp:TextBox ID="m_txt_retype_pass" runat="server" Width="65%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="m_req_validate_retype_pass" runat="server" 
                        ControlToValidate="m_txt_retype_pass" Text="(*)" ErrorMessage="You have to retype new password"></asp:RequiredFieldValidator>
                      <asp:CompareValidator ID="m_compare_validate" runat="server" ControlToCompare="m_txt_new_pass" ControlToValidate="m_txt_retype_pass"
             ErrorMessage="Two passwords typed are not match!" Text="(*)"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style1" style="height:10px;">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" style="height:30px;" colspan="2">
                    <asp:Button ID="m_cmd_changepass" CssClass="cssButton" Height="27px" runat="server" 
                    ToolTip="Change Password"
                        Text="Change Password" Width="110px" onclick="m_cmd_changepass_Click" />
                &nbsp;
                    <asp:Button ID="m_cmd_thoat" CssClass="cssButton" Height="27px" runat="server" CausesValidation="false"
                        Text="Cancel" Width="103px" onclick="m_cmd_thoat_Click" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" style="height:10px;">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            </table>
</div>